package commands;

import room.Room;

public class ChangeState extends Command
{
  private Room room;
  private int stateID;
  
  public ChangeState(Room room, int stateID)
  {
    this.room = room;
    this.stateID = stateID;
  }
  
  public String run()
  {
    return room.setCurrentState(stateID);
  }

  /**
   * @return the room
   */
  public Room getRoom()
  {
    return room;
  }

  /**
   * @param room the room to set
   */
  public void setRoom(Room room)
  {
    this.room = room;
  }

  /**
   * @return the stateID
   */
  public int getStateID()
  {
    return stateID;
  }

  /**
   * @param stateID the stateID to set
   */
  public void setStateID(int stateID)
  {
    this.stateID = stateID;
  }

}
